let [kjh,fd,hrg]=[2,"rr","fdg"];
console.log(kjh,fd,hrg);
let [,,sd]=[1,2];
console.log(sd);
// let {,,a}={2,4}//对象不可以

let [start,...end]=[1,2,2,3,5];
console.log(start+",",end);

let [x,y,...z]=[1];
console.log(x,y,z);

// let [foo] = [];
// console.log(foo);

let [ba, foo] = [1,3];
console.log(foo);

{
  let [a,[b],c]=[1,[2,3],4];
  console.log(a,b,c)
}
{
  let [x, y, z] = new Set(['a', 'b', 'c']);
  console.log(x,y,z)
}